package com.wydexcel.generate.process.context;


import com.wydexcel.generate.properties.generate.ExcelGenerateImpl;

import java.io.OutputStream;
import java.util.List;
import java.util.Map;
import java.util.function.Consumer;

public interface ExcelProcess {

    public void run(Map<String, Object> data);

    public void runMerge(List<Map<String, Object>> data);

    public void run(Object data);

    public void writeConsumer(Consumer<String> consumer);
    public void writeStreamConsumer(Consumer<OutputStream> consumer);

    public void closeConsumer(Consumer<String> consumer);

    public void write(String path);
    public void write(OutputStream outputStream);

    public void colse();

    public ExcelGenerateImpl setGenerate(ExcelGenerateImpl impl);

    void processSheet();
}
